package poc.scc.dao.hibernate;

import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;

import poc.scc.dao.IGenericDao;

public class GenericHibernateDao <T extends Serializable> extends AbstractHibernateDao<T> 
		implements IGenericDao<T>{
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public GenericHibernateDao() {
		 Type t = getClass().getGenericSuperclass();
	     ParameterizedType pt = (ParameterizedType) t;
	     clazz = (Class) pt.getActualTypeArguments()[0];
	}
	
}
